import React,{Component} from 'react';
import axios from 'axios';
export default class Comment extends Component{
  componentDidMount(){
    axios({
      url   : `http://localhost:3000/news/${this.props.match.params.id}`,
      method: 'get'
    }).then(res=>{
      console.log(res.data);
    })
  }
  render(){
    return (
      <div>
        Comments{this.props.match.params.id}
      </div>
    )
  }
}